/**
 * 
 */
package donnees;

import java.io.Serializable;
import java.util.Vector;

import donnees.ressources.Ressource;

/**
 * @author Alexander Remen
 *
 */
public class PaquetTCP implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String nom;
	private Vector <Ressource> ListeRessources;
	private Infos_Selectionnees infos;
	
	
	public Infos_Selectionnees getInfos() {
		return infos;
	}

	public PaquetTCP(String nom, Infos_Selectionnees infos){
		super();
		this.nom = nom;
		this.infos = infos;
	}

	public PaquetTCP(String nom){
		super();
		this.nom = nom;
		this.ListeRessources = new Vector<Ressource>();
	}
	
	public PaquetTCP(String nom, Vector<Ressource> Liste_Ressources){
		super();
		this.nom = nom;
		this.ListeRessources = Liste_Ressources;
	}
	
	public PaquetTCP() {
		super();
	}

	public void addRessource (Ressource laRessource){
		ListeRessources.add(laRessource);
	}
	
	public Vector<Ressource> getListeRessource(){
		return ListeRessources;
	}
	
	public String getNom(){
		return nom;
	}

}
